package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.MemberPriceTo;
import com.atguigu.common.to.SkuFullReductionTo;
import com.atguigu.common.to.SkuLadderTo;
import com.atguigu.common.to.SpuBoundTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.lang.reflect.Member;
import java.util.List;

/**
 * @Author: Farewell
 * @Date: 2022/1/26 14:39
 * @Description:
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @RequestMapping("/coupon/spubounds/save")
    public R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @RequestMapping("/coupon/skuladder/save")
    public R saveSkuLadder(@RequestBody SkuLadderTo skuLadderTo);

    @RequestMapping("/coupon/skufullreduction/save")
    public R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReductionTo);

    @PostMapping("/coupon/memberprice/saveBatchMemberPrice")
    public R saveBatchMemberPrice(@RequestBody List<MemberPriceTo> memberPriceToList);
}
